package util

// 这是一个路由组
const (
	Login = iota
	Flush
	Home
	Goods
	GoodsRent
	GoodsAdd
	GoodsDelete
	RentNote
	RentNoteDelete
	RentRequests
	RentRequestsReturned
	RentRequestsCancel
	RentRequestAgree
	Personal
	Revise
	Log
	AdminRent
)

func GroupText(code int) string {
	switch code {
	case Flush:
		return "/flush"
	case Login:
		return "/login"
	case Home:
		return "/home"
	case Goods:
		return "/goods"
	case GoodsRent:
		return "/goodsrent"
	case GoodsAdd:
		return "/goods/add"
	case GoodsDelete:
		return "/goods/delete/:id"
	case RentNote:
		return "rentNote"
	case RentNoteDelete:
		return "/rentNote/delete/:id"
	case RentRequests:
		return "/rentRequests"
	case RentRequestAgree:
		return "/rentRequest/agree"
	case RentRequestsReturned:
		return "/rentRequests/returned"
	case RentRequestsCancel:
		return "/rentRequests/cancel/:id"
	case Personal:
		return "/personal"
	case Revise:
		return "/revise"
	case Log:
		return "/log"
	case AdminRent:
		return "/adminRent"
	default:
		return ""
	}
}
